package cn.udinghuo.model.goods.infrastructure.vo;


import cn.udinghuo.core.mapping.MapperFactoryConfigurer;
import ma.glasnost.orika.MapperFactory;
import org.springframework.stereotype.Component;

/**
 * @author 
 *	商品基础信息模块
 */
@Component
public class InfrastructureMapping implements MapperFactoryConfigurer {

    @Override
    public void configure(MapperFactory orikaMapperFactory) {
		 orikaMapperFactory.classMap(cn.udinghuo.model.goods.infrastructure.ProductUnit.class, ProductUnitVo.class)
                .field("id","id")
	       		.field("code","code")
	       		.field("name","name")
	       		.field("outSysKey","outSysKey")
	       		.field("erpCode","erpCode")
	       		.field("unitPrecision","unitPrecision")
	       		.field("unitRoundType","unitRoundType")
	       		.field("unitRoundTypeStr","unitRoundTypeStr")
	       		.byDefault()
	       		.register();
    }
}
